//
//  ZLWrongParsingDetailCell.m
//  ZLExamination
//
//  Created by Zheng on 2017/9/13.
//  Copyright © 2017年 Zheng. All rights reserved.
//

#import "ZLWrongParsingDetailCell.h"

@implementation ZLWrongParsingDetailCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone
        ;
        [self.contentView addSubview:self.titleLbl];
        [self.contentView addSubview:self.contentLbl];
        
        [_titleLbl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.mas_equalTo(15);
        }];
        
        [_contentLbl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(_titleLbl.mas_bottom).offset(10);
            make.left.equalTo(_titleLbl);
            make.right.mas_equalTo(-15);
            make.bottom.mas_equalTo(-30);
        }];
    }
    return self;
}


- (UILabel *)titleLbl {
    if (!_titleLbl) {
        _titleLbl = [[UILabel alloc] init];
        _titleLbl.text = @"解析:";
        _titleLbl.font = kMyFont(13);
        _titleLbl.textColor = [UIColor darkGrayColor];
    }
    return _titleLbl;
}

- (UILabel *)contentLbl {
    if (!_contentLbl) {
        _contentLbl = [[UILabel alloc] init];
        _contentLbl.font = kMyFont(13);
        _contentLbl.numberOfLines = 0;
        _contentLbl.textColor = [UIColor darkGrayColor];
        [_contentLbl sizeToFit];
    }
    return _contentLbl;
}


@end
